
package uestc.bitman.edxapp.downloading;

public class DownloadingTaskBreakPoints {

    public int threadsNum;

    public int[] start, size, current, end;

    public String urlString, pathString;

    public String sectionName, courseName, chapterName, title;

    public DownloadingTaskBreakPoints(String url, String path, int threadsNum) {
        this.threadsNum = threadsNum;
        start = new int[threadsNum];
        current = new int[threadsNum];
        end = new int[threadsNum];
        size = new int[threadsNum];
        urlString = url;
        pathString = path;
    }

    public void setBreakPoint(int threadId, int start, int size, int current, int end) {
        if (threadId >= threadsNum) {
            return;
        }
        this.start[threadId] = start;
        this.size[threadId] = size;
        this.current[threadId] = current;
        this.end[threadId] = end;
    }
}
